ABC149 F - Surrounded Nodes